<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>

<form id="exampleform" method="post" action="entry.php">

<?php

include('globalvars.php');

$examplePost = array(
	'clientnamefirst'=>'John',
	'clientnamelast'=>'Smith',
	'cellnumber'=>'5551234567',
	'sendsms'=>'1',
	'emailaddress'=>'john_smith@gmail.com',
	'sendemail'=>'1',
	'appointmentdate_1'=>'12',
	'appointmentdate_2'=>'21',
	'appointmentdate_3'=>'2012',
	'appointmenttimehour'=>'12',
	'appointmenttimeminute'=>'00',
	'appointmenttimepmam'=>'AM',
	'appointmentbody'=>'doomsday appointment',
	'format'=>$defaultformat,
	'send1hour'=>'1',
	'send24hours'=>'1',
	'entryid'=>'');

foreach($examplePost as $key => $value){
	echo '<input type="hidden" name="' . $key . '" value="' . $value . '" />';
}
	

?>

</form>

<script type="text/javascript">
	document.getElementById('exampleform').submit();
</script>

</body>
</html>